package cn.mihoyo.base.service;

import cn.mihoyo.base.query.BaseQuery;
import cn.mihoyo.base.util.PageList;
import org.springframework.stereotype.Service;

import java.util.List;

public interface BaseService<T> {
    void add(T t);

    void delete(Long id);

    void update(T t);

    T findById(Long id);

    List<T> findAll();

    PageList<T> queryByPage(BaseQuery query);

    void batchDel(List<Long> ids);
}
